/**
 * 饿汉单例模式示例
 * @author MIAO
 * Created on 2011-11-28
 * For more information, please visit:ismiao.com
 */
package com.ismiao.designPattern.Singleton;
public class SingletonNotSyn {
	// Private constructor suppresses, default public constructor
	private SingletonNotSyn(){}
	//在类内部定义一个自己的实例，并修饰为private仅供内部调用
	private static SingletonNotSyn instance = new SingletonNotSyn();
	//提供一个外部可直接的静态方法
	public static SingletonNotSyn getInstance(){
		return instance;
	}
}